package net.sikorscy.lampmanager.comapi.objects;

public class Timer implements Comparable<Timer> {
	private int id;
	private String hourOn;
	private String hourOff;
	private String minuteOn;
	private String minuteOff;
	private boolean on;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getHourOn() {
		return hourOn;
	}

	public void setHourOn(String hourOn) {
		this.hourOn = hourOn;
	}

	public String getHourOff() {
		return hourOff;
	}

	public void setHourOff(String hourOff) {
		this.hourOff = hourOff;
	}

	public String getMinuteOn() {
		return minuteOn;
	}

	public void setMinuteOn(String minuteOn) {
		this.minuteOn = minuteOn;
	}

	public String getMinuteOff() {
		return minuteOff;
	}

	public void setMinuteOff(String minuteOff) {
		this.minuteOff = minuteOff;
	}

	public boolean isOn() {
		return on;
	}

	public void setOn(boolean on) {
		this.on = on;
	}

	@Override
	public int compareTo(Timer o) {
		return getId() - o.getId();

	}
}
